math p1 integration